package org.example.model;

import org.jetbrains.annotations.NotNull;

public class LongStringResult implements Comparable<LongStringResult> {

    public Long id;

    public String value;

    public LongStringResult(Long id, String value) {
        this.id = id;
        this.value = value;
    }

    @Override
    public String toString() {
        return id + "|" + value + "\n";
    }

    @Override
    public int compareTo(@NotNull LongStringResult o) {
        return Long.compare(this.id, o.id);
    }
}
